import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询aiui配置
export function listTenantAuthAi(query) {
  return request({
    url: '/tenantAuthAi/config/selectTenantAuthAiList',
    method: 'get',
    params: query
  })
}


// 新增权限
export function insertTenantAuthAi(data) {
  return request({
    url: '/tenantAuthAi/config/insertTenantAuthAi',
    method: 'post',
    data: data
  })
}

//查询详情
export function selectTenantAuthAi(uid) {
  return request({
    url: '/tenantAuthAi/config/selectTenantAuthAi/' + parseStrEmpty(uid),
    method: 'get',
  })
}

//通过租户id查询
export function selectTenantAuthAiByTenantUid(query) {
  return request({
    url: '/tenantAuthAi/config/selectTenantAuthAiByTenantUid',
    method: 'get',
    params: query
  })
}


//删除权限
export function deleteTenantAuthAi(data) {
  return request({
    url: '/tenantAuthAi/config/deleteTenantAuthAi',
    method: 'post',
    data: data
  })
}

// 修改aiui配置状态
export function updateAiUiConfigStatus(data) {
  return request({
    url: '/aiui/config/updateAiUiConfigStatus',
    method: 'post',
    data: data
  })
}


// 修改aiui配置信息
export function updateAiUiConfig(data) {
  return request({
    url: '/aiui/config/updateAiUiConfig',
    method: 'post',
    data: data
  })
}
